import 'package:xanno/src/anno/entity/json2dart/model_generator.dart';

void main() {
  final json = """
  {
  "name": "xc",
    "age": 12,
    "listChild": [
      {"name":"childName", "age": 1},
      {"name":"childName", "age": 1},
      {"name":"childName", "age": 1}
    ],
    "info": {
       "time": "2019",
       "updateTime": "2018"
    },
    "listInt": [1,2,3,4],
    "listStr": ["1", "2", "3"]
  }
  """;
  var code = ModelGenerator("ModelInfo", false).generateDartClasses(json).code;
  print(code);
}
